package io.github.yangyouwang.crud.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("material")
@ApiModel(value="material对象", description="档案表")
public class Material {
    @ApiModelProperty(value = "线路编号")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "物料编码")
    @TableField("materialCode")
    private String materialCode;

    @ApiModelProperty(value = "物料名称")
    @TableField("materialName")
    private String materialName;

    @ApiModelProperty(value = "物料所属")
    @TableField("materialItem")
    private String materialItem;
}